<template>
  <BackHeader :title="lang.customer_title" />
  <div class="content app_center">
    <div class="link">
      <div
        class="linkBox"
        v-for="item in list"
        :key="item.id"
        v-click-move
        @click="handleClick(item)"
      >
        <div class="left">
          <NuxtImg :src="item.img" />
          <div class="text">
            <p>{{ item.title }}</p>
            <span>{{ item.desc }}</span>
          </div>
        </div>
        <div class="btn">{{ lang.contato }}</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const lang: any = getCurrentPageLang("customer");
const list = ref([
  {
    id: 1,
    img: "/images/carteira/rebate_icon.png",
    title: lang.title_online,
    desc: lang.desc_online,
  },
  {
    id: 2,
    img: "/images/customer/1754578598575z125j.png",
    title: lang.title_whatsapp,
    desc: lang.desc_whatsapp,
  },
  {
    id: 3,
    img: "/images/customer/1754578565305sr0v6.png",
    title: lang.title_telegram,
    desc: lang.desc_telegram,
  },
]);

function handleClick(item: any) {
  showNotify({ type: "success", message: "此处触发跳转" });
}
</script>

<style scoped lang="scss">
.content {
  padding: 0.2rem 0.5rem;
  padding-top: 1.2rem;
}
.content .link {
  margin-top: 0.4rem;
  color: var(--theme-neutral1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.content .link .linkBox {
  padding: 0.2rem;
  background-color: #3e2e4b;
  border-radius: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content .link .linkBox .left {
  display: flex;
  align-items: center;
  flex: 1;
}
.content .link .linkBox .left img {
  margin-right: 0.25rem;
}
.content .link img {
  width: 1.1rem;
  height: 1.1rem;
}
.content .link .linkBox .left span {
  color: #86718c;
  font-size: 0.28rem;
}
.content .btn {
  background: linear-gradient(270deg, #e151a4 0%, #e66fc8 100%);
  width: 1.8rem;
  height: 0.67rem;
  text-align: center;
  line-height: 0.67rem;
  border-radius: 0.1rem;
}
</style>
